The Interactive Video Toolkit interfaces to laserdiscs.
-- part contents for card part 1
----- text -----
The HyperCard Serial Port Toolkit consists of a set of HyperTalk commands and functions which allow HyperCard stacks to control the serial ports of the Macintosh and communicate through them.
Before using the command in the toolkit, the following piece of HyperTalk code must be executed once:
global SPortGlobals
It is only necessary to declare these globals (you don't need to put anything in them), and you only need to do it once. The best thing to do is put the code above in the openStack script for the stack.
Once this is done, the configureSPort command can be used to select the port and configure it. If you want the input buffered, you can use the setSPortBufferSize command to allocate the appropriate buffer. Then the sendSPort, recvChars, recvUpTo, charsAvailable, and breakSPort commands can be used to send and receive data. When done, the closeSPort command can be used to close the port.